package com.ying.repository;

import com.ying.entity.SysUserEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * @author ziyan
 * @email 434595824@qq.com
 * @date 2017/9/25
 */
public interface SysUserRepository extends JpaRepository<SysUserEntity, Long>, JpaSpecificationExecutor<SysUserEntity> {
    List<String> findByUserId(Long userId);

    SysUserEntity findByUsername(String username);
}